package club.cearnach.api.service.impl;

import club.cearnach.api.dao.IPlaceDao;
import club.cearnach.entity.Place;
import club.cearnach.api.service.IPlaceService;
import org.springframework.stereotype.Service;

/**
 * @author 阮胜
 * @date 2018/5/12 17:04
 */
@Service
public class PlaceServiceImpl implements IPlaceService {
    private final IPlaceDao placeDao;

    public PlaceServiceImpl(IPlaceDao placeDao) {
        this.placeDao = placeDao;
    }

    @Override
    public Place save(Place place) {

        return placeDao.save(place);
    }

}
